package com.tongji.travelplan.unitstub;

import java.util.ArrayList;

import com.tongji.travelplan.beans.CityBean;
import com.tongji.travelplan.dao.CityDao;

public class testcity {
	public static void main(String[] args)
	{
		CityBean cityBean = new CityBean();
		ArrayList<CityBean> aList = new ArrayList<CityBean>();
		CityDao cityDao = new CityDao();
		aList = cityDao.getAllCity();
		for(int i = 0; i < aList.size() ; i++)
		{
			cityBean = aList.get(i);
			System.out.println(cityBean.getId()+":"+cityBean.getName()+":"+cityBean.getInfomation()+
					":"+cityBean.getProvince().getId()+":"+cityBean.getProvince().getName()+":"+cityBean.getProvince().getInfomation()
					+":"+cityBean.getProvince().getCountry().getId()+":"+cityBean.getProvince().getCountry().getName()+":"
					+cityBean.getProvince().getCountry().getInfomation());
		}
	}
}
